home *** CD-ROM | disk | FTP | other *** search
- Path: oxy.rust.net!usenet
- From: ebennett@rust.net
- Newsgroups: comp.lang.c++
- Subject: Re: Why can't I use this function prototype????
- Date: Fri, 12 Jan 1996 03:06:36 GMT
- Organization: Rust Net - High Speed Internet in Detroit 810-642-2276
- Message-ID: <4d48kb$qb9@oxy.rust.net>
- References: <60ju5934@kbrady.ultranet.com>
- NNTP-Posting-Host: liv-13.rust.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- Ken Brady <kbrady@ultranet.com> wrote:
-
- >I have a header file with something like:
- >
- >/* pm_app.hpp */
- >Class PmApplication {
- > PmApplication();
- > .... //member and method definitions here
- >};
- >
- >PmApplication *Application(); //a typical function prototype??
- >// other function prototypes here
- >// end pm_app.hpp
- >
- >My implementation is, of course, hidden from users of the header file:
- >
- > Stuff Deleted...
- >
- >void MyProcedure()
- >{ ...
- > PmApp *A=Application(); //won't compile!!
- > ...
- >}
- >
-
-
- I suspect the problem is simply that the statement:
-
- PmApp *A = Application();
-
- should be
-
- PmApplication *A = Application();
-
- The compiler has not seen a prototype for a function called
- Application() which returns a pointer to a PmApp object.
-
- Earl Bennett
-
-
-
-
-
-